import {
	getCuteList
} from '@/utils/product'

const actions = {
	async getProductList({
		commit
	}) {
		try {
			const {
				data
			} = await getCuteList();

			let list = data.data;
			let recommed = data.data.pop();
			commit('changeProductList', list)
			commit('changeRecommed', recommed)
		} catch (e) {
			throw e
		}
	}
}

export default actions;
